package com.example.neusoft.zyfypt_wk.service;


import com.example.neusoft.zyfypt_wk.bean.ArticleBean;
import com.example.neusoft.zyfypt_wk.bean.LoginBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Neusoft on 2017/4/18.
 */

public interface UserService {
    @GET("api.php/reg/username/{username}/password/{password}/tel/{tel}")
    Call<String> register(
            @Path("username") String username,
            @Path("password") String password,
            @Path("tel") String tel
    );

    @GET("api.php/login/username/{username}/password/{password}")
    Call<LoginBean> login(
            @Path("username") String username,
            @Path("password") String password

    );

    @GET("api.php/ logout")
    Call<String> logout(
            @Header("SessionID") String SessionID
    );
}
